reJest - mikro-framework for Reanimated public API runtime tests#5400
Merged
reJest - mikro-framework for Reanimated public API runtime tests#5400
Conversation
7bdbb56 to
1f1a22e
Compare
Based on the changes in our libraries mentioned in this PR (software-mansion/react-native-gesture-handler#2635), we need to make adjustments to our `.podspec` file. We should utilize the `install_modules_dependencies` feature available in React Native since version 0.72. Backward compatibility: <img width="126" alt="image" src="https://github.com/software-mansion/react-native-reanimated/assets/36106620/ce5c1c67-8251-47d6-8d4b-98c959a4dfb8"> Check CI --------- Co-authored-by: Tomek Zawadzki <[email protected]>
tomekzaw
requested changes
Feb 23, 2024
android/src/main/java/com/swmansion/reanimated/NodesManager.java
Outdated
Show resolved
Hide resolved
Latropos
commented
Feb 26, 2024
Latropos
commented
Feb 26, 2024
tjzel
approved these changes
Mar 8, 2024
Collaborator
tjzel
left a comment
There was a problem hiding this comment.
Let's get this bad boy merged!
app/src/examples/RuntimeTests/ReanimatedRuntimeTestsRunner/Comparators.ts
Outdated
Show resolved
Hide resolved
app/src/examples/RuntimeTests/ReanimatedRuntimeTestsRunner/Comparators.ts
Show resolved
Hide resolved
app/src/examples/RuntimeTests/ReanimatedRuntimeTestsRunner/Comparators.ts
Show resolved
Hide resolved
app/src/examples/RuntimeTests/ReanimatedRuntimeTestsRunner/TestRunner.ts
Outdated
Show resolved
Hide resolved
app/src/examples/RuntimeTests/ReanimatedRuntimeTestsRunner/TestRunner.ts
Show resolved
Hide resolved
app/src/examples/RuntimeTests/ReanimatedRuntimeTestsRunner/Matchers.ts
Outdated
Show resolved
Hide resolved
Latropos
commented
Mar 12, 2024
tomekzaw
approved these changes
Mar 12, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR comes with mikro-framework for Reanimated public API runtime tests
Based on: #5406
Example usage
1. Create testing container in your application
2. Implement tests
Animations.test.tsAPI
describetestexpectrenderuseTestRefgetTestComponentcomponent.getAnimatedStylemockAnimationTimerrecordAnimationUpdatesupdatesContainer.getUpdatesupdatesContainer.getNativeSnapshotscallTrackercallTrackerFngetTrackerCallCountregisterValuegetRegisteredValuePresetsnotifywaitForNotifywait